#coding:utf-8
'''
Created on 2012-7-10

@author: wb_suoyao.shen
'''

class RecdTags:
    def __init__(self,tag_name,diary_list):
        self.tag_name = tag_name
        self.diary_list = diary_list
        
    def add_diary(self,recdDiary):
        self.diary_list.append(recdDiary)
        
    def remove_diary(self,index):
        del self.diary_list[index]

class RecdDiary:
    def __init__(self,diary_id,diary_title):
        self.diary_id = diary_id
        self.diary_title = diary_title